import req from '@/utils/request';
import * as URL from '@/constants/api';

// 发送短信验证码
export function getCodeInfo(mobileNum) {
  return req({
    url: URL.SEND_CODE + mobileNum,
  })
    .then(res => res.data?.message);
}
// 用户认证
export function getLoginInfo(mobile, code) {
  return req({
    url: URL.LOGIN_LIST,
    method: 'POST',
    data: {
      mobile,
      code,
    },
  }).then(res => res.data);
}

